﻿public enum EventID
{
    //TCP
    USER_PING_REQUEST = 11002,
    USER_PING_RESPONSE = 11003,
    CHAT_MESSAGE_REQUEST = 10001,
    CHAT_MESSAGE_RESPONSE = 10002,
    SERVER_ERROR = 990001,
    USER_SYNC_REQUEST = 11000,
    USER_SYNC_RESPONSE = 11001,
    SYNC_MESSAGE_REQUEST = 10005,
    SYNC_MESSAGE_RESPONSE = 10006,
    CREATE_ROOM_REQUEST = 20001,
    CREATE_ROOM_RESPONSE = 20002,
    JOIN_ROOM_REQUEST = 20003,
    JOIN_ROOM_RESPONSE = 20004,
    QUIT_ROOM_REQUEST = 20005,
    QUIT_ROOM_RESPONSE = 20006,

}

public class EventDef
{
    public const string UI_ON_VERSIONUPDATE_MESSAGE = "ui_on_versionupdate_message";

    public const string EVENT_START_PHP_REQ = "event_start_php_req";
    public const string EVENT_END_PHP_REQ = "event_end_php_req";
    public const string EVENT_TIMEOUT_PHP_REQ = "event_timeout_php_req";
    public const string EVENT_BACKGROUND_REQUEST_TIMEOUT = "event_background_request_timeout";
    public const string SYS_NETWORK_ERROR = "sys_network_error";

    public const string SYS_ANOTHER_DAY = "sys_another_day";

    public const string SYS_TCP_CONNECT_FINISH = "sys_tcp_connect_success";
    public const string SYS_TCP_DISCONNECTED = "sys_tcp_disconnected";
    public const string SYS_TCP_RECONNECT_FAIL = "sys_tcp_reconnect_fail";

    public const string BATTLE_EVENT = "battle_event";
    public const string UNZIP_PROGRESS = "UNZIP_PROGRESS";
    public const string CHECK_CONFIGMD5_PROGRESS = "CHECK_CONFIGMD5_PROGRESS";
    public const string WRITE_FILE_ERROR = "WRITE_FILE_ERROR";
}

